package org.neframework.webtest.model;

import java.sql.Timestamp;

import com.tmsps.neframework.jpa.annotation.Id;
import com.tmsps.neframework.jpa.annotation.NotMap;
import com.tmsps.neframework.jpa.annotation.Table;
import com.tmsps.neframework.jpa.model.DbModel;

/**
 * 操作日志
 * 
 * @author 冯晓东 398479251
 *
 */
@Table
public class t_fk_log implements DbModel {
	@NotMap
	private static final long serialVersionUID = 1L;
	@Id
	private String kid;
	private int status = 0;
	private Timestamp created = new Timestamp(System.currentTimeMillis());

	private String dept_code;// 所属机构号
	private String log;
	/* @Column(name = "[level]") */
	private String level_msg;// 操作级别

	private String clazz;// 作用的类
	private String clazz_id;// 作用类_id号

	private String user_id;// 操作者
	private String ip;

	// 日志级别
	public enum Level {
		L("低"), M("中"), H("高");

		private Level(String level) {
			this.level = level;
		}

		public String toString() {
			return level.toString();
		}

		private String level;

	}

	// =========== get / set () ====================

	public String getKid() {
		return kid;
	}

	public void setKid(String kid) {
		this.kid = kid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public String getDept_code() {
		return dept_code;
	}

	public void setDept_code(String dept_code) {
		this.dept_code = dept_code;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public String getLevel_msg() {
		return level_msg;
	}

	public void setLevel_msg(String level_msg) {
		this.level_msg = level_msg;
	}

	public String getLevel() {
		return level_msg;
	}

	public void setLevel(String level_msg) {
		this.level_msg = level_msg;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getClazz_id() {
		return clazz_id;
	}

	public void setClazz_id(String clazz_id) {
		this.clazz_id = clazz_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
